package com.service.strategy;

/**
 * 测试终端类
 *
 * @author wangyongkun
 * @create 2021/3/24
 */
public class Client {

    public static void main(String[] args) {
        double originalPrice = 100;
        double currentPrice;
        MovieTicket mt = new MovieTicket();

        mt.setPrice(originalPrice);
        Discount discount = new StudentDiscount();
        mt.setDiscount(discount);
        currentPrice = mt.getPrice();
        System.out.println("折扣价格:" + currentPrice);

    }
}
